FROM ubuntu:20.04

RUN {\
  apt update -y; \
  apt install -y ca-certificates; \
  ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
  echo "Asia/Shanghai" > /etc/timezone; \
}

VOLUME /opt/ldap/etc
EXPOSE 8000

WORKDIR /opt/ldap

COPY ldap_server /usr/local/bin/ldap_server
CMD ldap_server

